#coding:utf-8
"""
*   Coder    : Dzlua
*   Email    : 505544956@qq.com
*   Time     : 2017/09/28
"""
#--------------------#
from app.helper import create_blueprinte, url_for, jsonify

#--------------------#
def init_apis(app):
    api = create_blueprinte('api')
    #
    @api.route('/')
    def home():
        data = {
            'url': url_for('api.home')
        }
        return jsonify(data)
    #
    app.register_blueprint(api)
#--------------------#